package com.uetoken.cn.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.uetoken.cn.R;
import com.uetoken.cn.bean.BindYGPrepareBean;

import java.util.List;

/**
 * @author 谢杨
 * @time 2018/8/28 17:43
 * @class 描述:
 */
public class BindYGPrepareAdapter extends BaseQuickAdapter<BindYGPrepareBean.DataBean.PurseinfoBean,BaseViewHolder> {

    public BindYGPrepareAdapter(int layoutResId, @Nullable List<BindYGPrepareBean.DataBean.PurseinfoBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BindYGPrepareBean.DataBean.PurseinfoBean item) {
        helper.setText(R.id.tv_item_bind_yg_prepare_name,item.getPursename());
        helper.setText(R.id.tv_item_bind_yg_prepare_money,item.getBalance()+item.getPurseunit()+"");
    }
}
